package com.cj.service;

import com.cj.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cc
 * @date 2025-05-12 09:05
 **/
@Service
public class UserService {

    /**
     * 向spring容器要一个userDao
     */
    @Autowired
//            @Resource
    UserDao userDao;


    public void sayHello(){
        userDao.sayHello();
    }
}
